package net.wofly.sale.order.service;

import java.util.List;

import net.wofly.sale.order.domain.ReturnGift;

public interface IReturnGiftService {

	/**
	 * 增加或修改
	 * 
	 * @param entity
	 * @return
	 */
	public ReturnGift save(ReturnGift entity);

	/**
	 * 删除
	 * 
	 * @param entity
	 * @return
	 */
	public void delete(ReturnGift entity);

	/**
	 * 根据主键ID删除
	 * 
	 * @param key
	 * @return
	 */
	public void delete(String key);
	
	void deleteByReturnSalesID(String returnSalesID);

	/**
	 * 根据主键查询
	 * 
	 * @param key
	 * @return
	 */
	public ReturnGift findOne(String key);
	
	public List<ReturnGift> findByReturnSalesID(String returnSalesID);
	
	public List<ReturnGift> save(List<ReturnGift> entityList) ;

}
